This project attempts to examine a city (NYC) to find an optimal neighborhood for opening a mexican restaurant.
New York City(pre-COVID) is a city bustling with restaurants and pedestrian traffic. The code will examine data to find a location that is based on the following criteria:
This where you will type up your discussion of the data e en before you get into the code!! Based on the criteria discussed in the introduction, the data collected would be a datasets consisting of all venues in the NYC area, broken down into smaller manageable datasets.
The data will be collected using the FourSquare API. All coordinates would be looked up and pandas would be created based on data returned by API. Additionally, maps and other visualization tools would be utilize to assit in making a decision on the best locations for opening a Mexican Restaurant. (All the code for this project is located after this report)
There would be an initial grab of all the venues and this would be filtered out into relevant subsets.
The newyork_data.json file is used as a starting source for this project instead of the google maps API. This json data is then loaded into a dataframe. Initially, it contains information on all the neighborhoods in all the NY boroughs. This data is filtered down to focus only on Manhattan neighborhoods (with their respective coordinates.
A pre-written function is used to iterate through the filtered manhattan_data dataset whilst making calls to the FourSquare API to generate a new dataset (manhattan_venues) which contains all the venues located in the FourSquare dataset for Manhattan.
This data is the manipulated and cleaned to produce subsets of data that includes only restaurant as the category and also more specifically only MEXICAN restaurants. These datasets would then serve as our primary data source for visualizing and making decisions about possible good locations to open a Mexican Restaurant in Manhattan.
The following images are generated as part of the visualization of data collected.
Blue dots are Mexican Restaurants. Red Dots are non-Mexican Restaurants